/*
 * Interface.h
 *
 *  Created on: 5 déc. 2009
 *      Author: math
 */

#ifndef INTERFACE_H_
#define INTERFACE_H_

#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/aui/aui.h"
#include "wx/menu.h"

//#include <wx/frame.h>


class LutEditorMainFrame: public wxFrame
{
public:
    LutEditorMainFrame(const wxString& title,
                       const wxPoint& pos=wxDefaultPosition,
                       const wxSize& size=wxDefaultSize);
    void OnInit();

protected:
    wxAuiManager m_mgr;
    wxMenuBar* m_menuBar;

    void CreateMenu();
    void OnAbout(wxCommandEvent& event);
    void OnQuit(wxCommandEvent& event);

DECLARE_EVENT_TABLE()
};


enum
{
ID_ANY = 1,
ID_OpenALS,
ID_Quit,
ID_About,
ID_EXPORT_IMAGE = 500,
ID_EXPORT_FICHIER_LUT = 501,
ID_IMPORT_LUT = 503,
ID_CHECK_SUPPR = 300,
ID_CHECK_SUPPR2 = 310,
ID_TEXTE_TEST,
ID_ENREGISTRER = 410,
ID_ENREGISTRER_SOUS = 411,
};


//int systemeCouleur;
//std::vector<Borne*> intervalle_lut;
//int typeInterpolation;
//void CreateLigne(int nombreLigne, wxBoxSizer *place,  int debutID);

//void OnExportImage(wxCommandEvent& event);
//void OnExportFichierLut(wxCommandEvent& event);
//void OnImportFichierLut(wxCommandEvent& event);
//void ImportLut(wxString loadfilename);
//void OnTextChange(wxCommandEvent& event);
//void OnButtonClic(wxCommandEvent& event);
//void Ajout(wxCommandEvent& event);
//void Suppr(wxCommandEvent& event);
//void Tri(wxCommandEvent& event);
//void BorneMinValeur(wxCommandEvent& event);
//void BorneMaxValeur(wxCommandEvent& event);
//void ChoixSyst(wxCommandEvent& event);
//void ChoixNbIntervalle(wxCommandEvent& event);
//void ChoixInterp(wxCommandEvent& event);
//void Calcul(wxCommandEvent& event);
//void ChoixTranparence(wxCommandEvent& event);
//void Annuler(wxCommandEvent& event);
//void Enregistrer(wxCommandEvent& event);
//void VisualiserLut(wxCommandEvent& event);
//void Appliquer(wxCommandEvent& event);
//void ImageRemplissageCouleur();
//bool VerifSystCouleur();
//void FonctionTri();
//void CadrageIntervalle();
//void AffichageImage();
//void ViderLigne();
//void ViderIntervalleLut();
//void LutRemplirTableau();
//void LutRemplirInterface(int type, int syst);
//void VerifBorneMinMax();
//void VerifBorneMax(double val);
//void VerifBorneMin(double valm);
//void MAJNbIntervalle();
//wxImage *image;
//wxSlider *transparence;
//wxBoxSizer *vert7;
//wxBoxSizer *horz11;
//wxStaticBitmap *image_ctrl;
//wxScrolledWindow *scrolledwin;
//int nbintervalle;
//int alpha;
//double f_borneMin;
//double f_borneMax;
//wxTextCtrl *borneMinValeur;
//wxTextCtrl *borneMaxValeur;
//wxButton *ajout;
//wxButton *supprimer;
//wxButton *annuler;
//wxButton *enregistrer;
//wxButton *visualiserLUT;
//wxBitmapButton *tri;
//wxComboBox *choixSystemeCouleur;
//wxComboBox *choixNbIntervalle;
//wxComboBox *choixInterpolation;
//std::vector<wxTextCtrl*> zonetexte;
//std::vector<wxButton*> bouton;
//std::vector<wxCheckBox*> checkbox_suppr;
//std::vector<Borne*> intervalle_image;

#endif /* INTERFACE_H_ */
